# == Schema Information
# Schema version: 2
#
# Table name: events
#
#  id            :integer         not null, primary key
#  event_type_id :integer
#  datetime      :datetime
#  game_id       :integer
#  player_id     :integer
#  target_id     :integer
#  flag_id       :integer
#

require 'rubygems'
require 'active_record'

module DB

class Event < ActiveRecord::Base
	belongs_to :event_type
	belongs_to :game
	belongs_to :player
	belongs_to :target, :class_name => 'Player',:foreign_key => "target_id"
	belongs_to :flag
end

end
